﻿using AJWPFAdmin.Core.Components.AJTable.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace AJWPFAdmin.Core.Components.Views
{
    /// <summary>
    /// AJRangePicker.xaml 的交互逻辑
    /// </summary>
    public partial class AJRangePicker : UserControl
    {

        public static DependencyProperty StartDateProperty =
            DependencyProperty.Register(nameof(StartDate), typeof(DateTime?), typeof(AJRangePicker), new PropertyMetadata());

        public DateTime? StartDate
        {
            get { return (DateTime?)GetValue(StartDateProperty); }
            set { SetValue(StartDateProperty, value); }
        }

        public static DependencyProperty StartPlaceholderProperty =
            DependencyProperty.Register(nameof(StartPlaceholder), typeof(string), typeof(AJRangePicker), new PropertyMetadata());

        public string StartPlaceholder
        {
            get { return (string)GetValue(StartPlaceholderProperty); }
            set { SetValue(StartPlaceholderProperty, value); }
        }

        public static DependencyProperty EndDateProperty =
            DependencyProperty.Register(nameof(EndDate), typeof(DateTime?), typeof(AJRangePicker), new PropertyMetadata());

        public DateTime? EndDate
        {
            get { return (DateTime?)GetValue(EndDateProperty); }
            set { SetValue(EndDateProperty, value); }
        }

        public static DependencyProperty EndPlaceholderProperty =
            DependencyProperty.Register(nameof(EndPlaceholder), typeof(string), typeof(AJRangePicker), new PropertyMetadata());

        public string EndPlaceholder
        {
            get { return (string)GetValue(EndPlaceholderProperty); }
            set { SetValue(EndPlaceholderProperty, value); }
        }

        public AJRangePicker()
        {
            InitializeComponent();
        }
    }
}
